package com.example.API;

public class API {
    public static void main(String[] args) {
        /*double abs = Math.abs(-10.324);
        System.out.println(abs);

        double ceil = Math.ceil(10.12);
        System.out.println(ceil);

        double floor = Math.floor(10.9);
        System.out.println(floor);

        long round = Math.round(3.59);
        System.out.println(round);

        double max = Math.max(2, 4.1);
        System.out.println(max);

        double min = Math.min(2, 1);
        System.out.println(min);

        double pow = Math.pow(2.2, 1.1);
        System.out.println(pow);

        double random = Math.random();  // [0.0 , 1.0)
        System.out.println(random);*/

        /*System.out.println(111);
        System.exit(0);
        System.out.println(222);
*/

        System.out.println(System.currentTimeMillis());


        int[] arr1 = {1, 2, 3, 4, 5};
        int[] arr2 = new int[10];
        System.arraycopy(arr1, 0, arr2, 0, arr1.length);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
        System.out.println();
        System.arraycopy(arr1, 1, arr2, 6, 3);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
}
